package cn.hsa.fqz.task.dao;

import cn.hsa.fqz.task.controller.vo.SysCodeQueryVO;
import cn.hsa.fqz.task.entity.SysCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysCodeMapper {

    int insert(SysCode record);

    int insertSelective(SysCode record);

    List<SysCode> selectByField(@Param("field") String field);

    List<SysCode> selectListByFields(@Param("fields") List<String> field);

    List<SysCode> getCodeByPid(@Param("pid") String pid);

    Integer updateSelective(SysCode code);

    Integer deleteByFieldAndKey(@Param("field") String field, @Param("key") String key);

    List<String> getFieldsLikeName(@Param("name") String name);

    List<SysCode> selectPageByCondition(@Param("param") SysCodeQueryVO.Condition condition);

    void deleteByPrimaryKey(@Param("id") Integer id);

    List<String> selectAllFields();
}
